//
//  UILabel+xhq.m
//  WineLovers
//
//  Created by xhq on 2019/5/7.
//  Copyright © 2019 frank. All rights reserved.
//

#import "UILabel+xhq.h"

@implementation UILabel (xhq)
-(CGFloat)xhq_realHeightWithWithMaxWidth:(CGFloat)width{
    
   
    CGSize labelSize = [self sizeThatFits:CGSizeMake(width, MAXFLOAT)];
    CGFloat height = ceil(labelSize.height) + 1;
    return height;
}
@end
